import { defineStore } from 'pinia'
import { ControlType } from '@/enum/visualEditor'
const useVisualEditorStore = defineStore('visualEditor', {
  state: () => {
    return {
      pageDataList: [] as any[],
      currentComponent: {} as WidgetItem,
      controlType: ControlType.无,
      activeId: -1 //编辑中的组件时间戳id
    }
  },

  getters: {
    currentConfig: () => {}
  },
  actions: {
    getPageDataList(id) {
      this.pageDataList = []
    }
  }
})

export default useVisualEditorStore
